//
//	MCBodyDataStatisticsModelList.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation 
import ObjectMapper


class MCBodyDataStatisticsModelList : NSObject, NSCoding, Mappable{

	var abdomen : String?
	var abdomenHistory : [MCBodyDataStatisticsAbdomenHistory]?
	var abdomenTrend : Int?
	var arm : String?
	var armHistory : [MCBodyDataStatisticsAbdomenHistory]?
	var armTrend : Int?
	var bust : String?
	var bustHistory : [MCBodyDataStatisticsAbdomenHistory]?
	var bustTrend : Int?
	var fat : String?
	var fatHistory : [MCBodyDataStatisticsAbdomenHistory]?
	var fattTrend : Int?
	var height : String?
	var heightHistory : [MCBodyDataStatisticsAbdomenHistory]?
	var heightTrend : Int?
	var pygal : String?
	var pygalHistory : [MCBodyDataStatisticsAbdomenHistory]?
	var pygalTrend : Int?
	var shank : String?
	var shankHistory : [MCBodyDataStatisticsAbdomenHistory]?
	var shankTrend : Int?
	var thigh : String?
	var thighHistory : [MCBodyDataStatisticsAbdomenHistory]?
	var thighTrend : Int?
	var trend : Int?
	var waist : String?
	var waistHistory : [MCBodyDataStatisticsAbdomenHistory]?
	var weight : String?
	var weightHistory : [MCBodyDataStatisticsAbdomenHistory]?
	var weightTrend : Int?


	class func newInstance(map: Map) -> Mappable?{
		return MCBodyDataStatisticsModelList()
	}
	required init?(map: Map){}
	private override init(){}

	func mapping(map: Map)
	{
		abdomen <- map["abdomen"]
		abdomenHistory <- map["abdomenHistory"]
		abdomenTrend <- map["abdomenTrend"]
		arm <- map["arm"]
		armHistory <- map["armHistory"]
		armTrend <- map["armTrend"]
		bust <- map["bust"]
		bustHistory <- map["bustHistory"]
		bustTrend <- map["bustTrend"]
		fat <- map["fat"]
		fatHistory <- map["fatHistory"]
		fattTrend <- map["fattTrend"]
		height <- map["height"]
		heightHistory <- map["heightHistory"]
		heightTrend <- map["heightTrend"]
		pygal <- map["pygal"]
		pygalHistory <- map["pygalHistory"]
		pygalTrend <- map["pygalTrend"]
		shank <- map["shank"]
		shankHistory <- map["shankHistory"]
		shankTrend <- map["shankTrend"]
		thigh <- map["thigh"]
		thighHistory <- map["thighHistory"]
		thighTrend <- map["thighTrend"]
		trend <- map["trend"]
		waist <- map["waist"]
		waistHistory <- map["waistHistory"]
		weight <- map["weight"]
		weightHistory <- map["weightHistory"]
		weightTrend <- map["weightTrend"]
		
	}

    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required init(coder aDecoder: NSCoder)
	{
         abdomen = aDecoder.decodeObject(forKey: "abdomen") as? String
         abdomenHistory = aDecoder.decodeObject(forKey: "abdomenHistory") as? [MCBodyDataStatisticsAbdomenHistory]
         abdomenTrend = aDecoder.decodeObject(forKey: "abdomenTrend") as? Int
         arm = aDecoder.decodeObject(forKey: "arm") as? String
         armHistory = aDecoder.decodeObject(forKey: "armHistory") as? [MCBodyDataStatisticsAbdomenHistory]
         armTrend = aDecoder.decodeObject(forKey: "armTrend") as? Int
         bust = aDecoder.decodeObject(forKey: "bust") as? String
         bustHistory = aDecoder.decodeObject(forKey: "bustHistory") as? [MCBodyDataStatisticsAbdomenHistory]
         bustTrend = aDecoder.decodeObject(forKey: "bustTrend") as? Int
         fat = aDecoder.decodeObject(forKey: "fat") as? String
         fatHistory = aDecoder.decodeObject(forKey: "fatHistory") as? [MCBodyDataStatisticsAbdomenHistory]
         fattTrend = aDecoder.decodeObject(forKey: "fattTrend") as? Int
         height = aDecoder.decodeObject(forKey: "height") as? String
         heightHistory = aDecoder.decodeObject(forKey: "heightHistory") as? [MCBodyDataStatisticsAbdomenHistory]
         heightTrend = aDecoder.decodeObject(forKey: "heightTrend") as? Int
         pygal = aDecoder.decodeObject(forKey: "pygal") as? String
         pygalHistory = aDecoder.decodeObject(forKey: "pygalHistory") as? [MCBodyDataStatisticsAbdomenHistory]
         pygalTrend = aDecoder.decodeObject(forKey: "pygalTrend") as? Int
         shank = aDecoder.decodeObject(forKey: "shank") as? String
         shankHistory = aDecoder.decodeObject(forKey: "shankHistory") as? [MCBodyDataStatisticsAbdomenHistory]
         shankTrend = aDecoder.decodeObject(forKey: "shankTrend") as? Int
         thigh = aDecoder.decodeObject(forKey: "thigh") as? String
         thighHistory = aDecoder.decodeObject(forKey: "thighHistory") as? [MCBodyDataStatisticsAbdomenHistory]
         thighTrend = aDecoder.decodeObject(forKey: "thighTrend") as? Int
         trend = aDecoder.decodeObject(forKey: "trend") as? Int
         waist = aDecoder.decodeObject(forKey: "waist") as? String
         waistHistory = aDecoder.decodeObject(forKey: "waistHistory") as? [MCBodyDataStatisticsAbdomenHistory]
         weight = aDecoder.decodeObject(forKey: "weight") as? String
         weightHistory = aDecoder.decodeObject(forKey: "weightHistory") as? [MCBodyDataStatisticsAbdomenHistory]
         weightTrend = aDecoder.decodeObject(forKey: "weightTrend") as? Int

	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc func encode(with aCoder: NSCoder)
	{
		if abdomen != nil{
			aCoder.encode(abdomen, forKey: "abdomen")
		}
		if abdomenHistory != nil{
			aCoder.encode(abdomenHistory, forKey: "abdomenHistory")
		}
		if abdomenTrend != nil{
			aCoder.encode(abdomenTrend, forKey: "abdomenTrend")
		}
		if arm != nil{
			aCoder.encode(arm, forKey: "arm")
		}
		if armHistory != nil{
			aCoder.encode(armHistory, forKey: "armHistory")
		}
		if armTrend != nil{
			aCoder.encode(armTrend, forKey: "armTrend")
		}
		if bust != nil{
			aCoder.encode(bust, forKey: "bust")
		}
		if bustHistory != nil{
			aCoder.encode(bustHistory, forKey: "bustHistory")
		}
		if bustTrend != nil{
			aCoder.encode(bustTrend, forKey: "bustTrend")
		}
		if fat != nil{
			aCoder.encode(fat, forKey: "fat")
		}
		if fatHistory != nil{
			aCoder.encode(fatHistory, forKey: "fatHistory")
		}
		if fattTrend != nil{
			aCoder.encode(fattTrend, forKey: "fattTrend")
		}
		if height != nil{
			aCoder.encode(height, forKey: "height")
		}
		if heightHistory != nil{
			aCoder.encode(heightHistory, forKey: "heightHistory")
		}
		if heightTrend != nil{
			aCoder.encode(heightTrend, forKey: "heightTrend")
		}
		if pygal != nil{
			aCoder.encode(pygal, forKey: "pygal")
		}
		if pygalHistory != nil{
			aCoder.encode(pygalHistory, forKey: "pygalHistory")
		}
		if pygalTrend != nil{
			aCoder.encode(pygalTrend, forKey: "pygalTrend")
		}
		if shank != nil{
			aCoder.encode(shank, forKey: "shank")
		}
		if shankHistory != nil{
			aCoder.encode(shankHistory, forKey: "shankHistory")
		}
		if shankTrend != nil{
			aCoder.encode(shankTrend, forKey: "shankTrend")
		}
		if thigh != nil{
			aCoder.encode(thigh, forKey: "thigh")
		}
		if thighHistory != nil{
			aCoder.encode(thighHistory, forKey: "thighHistory")
		}
		if thighTrend != nil{
			aCoder.encode(thighTrend, forKey: "thighTrend")
		}
		if trend != nil{
			aCoder.encode(trend, forKey: "trend")
		}
		if waist != nil{
			aCoder.encode(waist, forKey: "waist")
		}
		if waistHistory != nil{
			aCoder.encode(waistHistory, forKey: "waistHistory")
		}
		if weight != nil{
			aCoder.encode(weight, forKey: "weight")
		}
		if weightHistory != nil{
			aCoder.encode(weightHistory, forKey: "weightHistory")
		}
		if weightTrend != nil{
			aCoder.encode(weightTrend, forKey: "weightTrend")
		}

	}

}